//
//  PubFunction.h
//  EnglishDemo
//  力争各个项目能公用的函数，跟业务无关
//  Created by huanghb on 11-1-10.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <CommonCrypto/CommonDigest.h>
#import <CommonCrypto/CommonCryptor.h>
#import <Security/Security.h>
#import "NSString+Base64.h"

@interface PubFunction : NSObject {

}

+ (BOOL) stringIsNullOrEmpty: (NSString *) obj;

+ (NSString *)toJson:(NSMutableDictionary *)dic;

+(NSString *)getYHQFormatTime:(NSTimeInterval)timeInterval;

+(NSString *)getRetainTime:(NSString *)oldtime;

+(NSString *)getTimeByFormat:(NSDate *)datetime format:(NSString *)format;

+(NSString *)getRetainDays:(NSString *)oldtime;

+(UIImage *)GetSkinImage:(NSString *)imagename;

+(UIImage *)SelectImage:(NSString *)imagename;

+(UIImage *)GetImage:(NSString *)imagename;

@end
